package com.jec.module.sysmonitor.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.jec.module.sysmonitor.entity.Card;

public interface CardRepository extends JpaRepository<Card, Integer>{
	
	public List<Card> findByNetUnitId(int netUnitId);
	
	public Card findByNetUnitIdAndType(int netUnitId, int type);
	
	public List<Card> findAllByNetUnitIdAndType(int netUnitId, int type);
	
	public List<Card> findAllByNetUnitIdAndTypeNot(int netUnitId, int type);
	
	public Card findByNetUnitIdAndSlotNumber(int netUnitId, int slotNumber);
	
	public List<Card> findByNetUnitIdAndTypeAndSlotNumberGreaterThan(int netUnitId, int type, int slotNumber);
	
	public void deleteByNetUnitIdAndSlotNumberGreaterThan(int netUnitId, int slotNumber);
	
	public void deleteByNetUnitId(int netUnitId);

}
